home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / gpt32src.zip / MAKEFILE.TC < prev    next >
Text File  |  1992-03-25  |  4KB  |  143 lines

  1. #
  2. # $Id: makefile.tc,v 3.26 92/03/24 22:36:32 woo Exp Locker: woo $
  3. #
  4. #
  5. # make file for Borland C++ 2.0/Turbo C++ 1.0/Turbo C 2.0
  6. # uses Borland proprietry overlay manager
  7. # Modified from the TurboC makefile by Maurice Castro
  8. # The compile and link includes debug flags.  Take them out if you
  9. # do not want them included  (-y -v -M, /m /s /v /l)
  10.  
  11. # where to place gnuplot.gih helpfile
  12. HELPFILE = gnuplot.gih
  13. # location of Turbo C compiler
  14. # if this is changed then linkopt.tc/linkopt.tco will need to be edited.
  15. TC = c:\tc
  16. # name of C compiler
  17. CC = bcc
  18. #CC = tcc
  19. # location of TLINK.EXE and TCC.EXE or BCC.EXE
  20. BIN = $(TC)\bin\\
  21. #BIN =
  22. # location of BGI files,
  23. # change this line if not in TC directory, i.e. $(TC)\bgi
  24. BGI = $(TC)\bgi
  25. # location of bgiobj.exe tool - convertion of BGI to a linkable OBJ file.
  26. BGIOBJ = $(TC)\bgi\\
  27. #BGIOBJ =
  28.  
  29. # -c means don't link, -f means emulate 8087 if not present
  30. # -ml means use large model (large code, large data)
  31. # -M means produce link map
  32. # -y means include line numbers for debugger
  33. # -v means include debug info
  34. # -w- means ignore warnings and do not report them
  35. # -DREADLINE to use the history/line editing capability. If you want this 
  36. #    capability add -DREADLINE to CFLAGS then add 'readline' to linkopt.tc
  37. #    and to linkopt.tco in the /o section.
  38. CFLAGS = -c -f -ml -M -y -v -w- -I$(TC)\include -DMSDOS -DPC
  39. TERMFLAGS =
  40.  
  41. # With Overlay Support
  42. #OVLY1 = -Y
  43. #OVLY2 = -Yo
  44. # Without Overlay Support
  45. OVLY1 =
  46. OVLY2 =
  47.  
  48.  
  49. OBJS =     bitmap.obj command.obj contour.obj eval.obj graphics.obj graph3d.obj \
  50.     help.obj internal.obj misc.obj parse.obj plot.obj readline.obj \
  51.     scanner.obj setshow.obj standard.obj term.obj util.obj version.obj \
  52.     cgaf.obj egavgaf.obj hercf.obj attf.obj
  53.  
  54. CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm \
  55.     term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  56.     term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  57. CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  58.     term\iris4d.trm term\kyo.trm term\latex.trm term/pbm.trm term\pc.trm 
  59. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  60.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  61.     term\v384.trm term\x11.trm
  62. CSOURCE8 = contour.c
  63.  
  64. all: gnuplot.exe $(HELPFILE)
  65.  
  66. # use linkopt.tc/linkopt.tco to avoid command-line overflow
  67.  
  68. gnuplot.exe: $(OBJS) 
  69. # With Overlay Support (select one)
  70. #    $(BIN)tlink /m /s /v /l @linkopt.tco
  71. #    $(BIN)tlink @linkopt.tco 
  72. # Without Overlay Support
  73. #    $(BIN)tlink /m /s /v /l @linkopt.tc
  74.     $(BIN)tlink @linkopt.tc 
  75.  
  76. # default rules
  77.  
  78. .c.obj:
  79.     $(BIN)$(CC) $(OVLY2) $(CFLAGS) $<
  80.  
  81. # The default for files is to be compiled for overlaying if OVLY1 and 
  82. # OVLY2 are defined.  plot.c and parse.c are not suitable for overlaying.
  83.  
  84. bitmap.obj: bitmap.c bitmap.h plot.h
  85.  
  86. command.obj: command.c plot.h setshow.h help.h
  87.     $(BIN)$(CC) $(OVLY2) $(CFLAGS) -DHELPFILE="$(HELPFILE)" command.c
  88.  
  89. contour.obj: contour.c plot.h
  90.  
  91. eval.obj: eval.c plot.h
  92.  
  93. graphics.obj: graphics.c plot.h setshow.h
  94.  
  95. graph3d.obj: graphics.c plot.h setshow.h
  96.  
  97. help.obj: help.c plot.h help.h
  98.  
  99. internal.obj: internal.c plot.h
  100.  
  101. misc.obj: misc.c plot.h setshow.h help.h
  102.  
  103. parse.obj: parse.c plot.h
  104.     $(BIN)$(CC) $(OVLY1) $(CFLAGS) parse.c
  105.  
  106. plot.obj: plot.c plot.h setshow.h
  107.     $(BIN)$(CC) $(OVLY1) $(CFLAGS) plot.c
  108.  
  109. readline.obj: readline.c
  110.  
  111. scanner.obj: scanner.c plot.h
  112.  
  113. setshow.obj: setshow.c plot.h setshow.h
  114.  
  115. standard.obj: standard.c plot.h
  116.  
  117. term.obj: term.c term.h plot.h setshow.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  118.     $(BIN)$(CC) $(OVLY2) $(CFLAGS) $(TERMFLAGS) -Iterm term.c
  119.  
  120. util.obj: util.c plot.h
  121.  
  122. version.obj: version.c
  123.  
  124. # convert gnuplot.doc to gnuplot.gih
  125. $(HELPFILE): doc2gih.exe docs\gnuplot.doc
  126.     doc2gih docs\gnuplot.doc $(HELPFILE)
  127.  
  128. doc2gih.exe: docs\doc2gih.c
  129.     $(BIN)$(CC) -I$(TC)\include -L$(TC)\lib docs\doc2gih.c
  130.  
  131. # convert Borland Graphics Interface files to object for linking
  132. cgaf.obj: $(BGI)\cga.bgi
  133.     $(BGIOBJ)bgiobj /F $(BGI)\cga
  134.  
  135. egavgaf.obj: $(BGI)\egavga.bgi
  136.     $(BGIOBJ)bgiobj /F $(BGI)\egavga
  137.  
  138. hercf.obj: $(BGI)\herc.bgi
  139.     $(BGIOBJ)bgiobj /F $(BGI)\herc
  140.  
  141. attf.obj: $(BGI)\att.bgi
  142.     $(BGIOBJ)bgiobj /F $(BGI)\att
  143.